home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / gfx / daggex / docs / clients / fvwm / fvwmrc < prev    next >
Encoding:
Text File  |  1994-06-04  |  9.9 KB  |  330 lines

  1. ###########################################################################
  2. # set up the colors
  3. #
  4. # OK some people like bright clear colors on their window decorations.
  5. # These people, I guess would mostly be from nice sunny/good weather places
  6. # line California.
  7. #
  8. # StdForeColor         Black
  9. # StdBackColor        LightSkyBlue
  10. # HiForeColor         yellow
  11. # HiBackColor        PeachPuff1
  12. # PagerBackColor    BlanchedAlmond
  13.  
  14. # Me, I'm from Upstate New York, and live in New Hampshire, so I prefer
  15. # these dark muddy colors...
  16.  
  17. # this is used for non-selected windows, menus, and the panner
  18. StdForeColor         Black
  19. StdBackColor         #60a0c0
  20.  
  21. # this is used for the selected window
  22. HiForeColor         Black
  23. HiBackColor         #c06077
  24.  
  25. PagerBackColor        #5c54c0
  26. PagerForeColor        orchid
  27.  
  28. ############################################################################
  29. # Now the fonts - one for menus/icons, another for window titles
  30. Font            -adobe-helvetica-medium-r-*-*-*-120-*-*-*-*-*-*
  31. WindowFont        -adobe-helvetica-bold-r-*-*-*-120-*-*-*-*-*-*
  32. IconFont        -adobe-helvetica-medium-r-*-*-*-100-*-*-*-*-*-*
  33. # PagerFont is used to mark windows in the Pager with their icon names.
  34. # This is really only useful for DeskTopScale < 20 or so
  35. PagerFont        5x8
  36.  
  37. ###########################################################################
  38. # Set up the major operating modes
  39. #
  40. # Set windows to auto-raise after 750 milliseconds if you like it.
  41. # Autoraise can sometimes obscure pop-up windows. Performance is now
  42. # similar to olvwm's auto-raise feature.
  43. AutoRaise 750
  44.  
  45. # Normally, we'll be in focus-follows mouse mode, but uncomment this 
  46. # for mwm-style click-to-focus
  47. #ClickToFocus
  48.  
  49. # Auto Place Icons is a nice feature....
  50. # This creates two icon boxes, one on the left side, then one on the
  51. # bottom. Leaves room in the upper left for my clock and xbiff,
  52. # room on the bottom for the Pager.
  53. IconBox -67 1 -1 100
  54. IconBox -150 90 -5 -140
  55. IconBox 5 -140 -140 -5
  56.  
  57. # If you uncomment this, and make sure that the WindowList is bound to
  58. # something, it works pretty much like an icon manager.
  59. #SuppressIcons
  60.  
  61. # If you don't like the default 150 msec click delay for the complex functions
  62. # change this and uncomment it.
  63. #ClickTime 150
  64.  
  65. ###########################################################################
  66. # Set up the virtual desktop and pager
  67.  
  68. #set the desk top size in units of physical screen size
  69. DeskTopSize 3x3
  70.  
  71. # and the reduction scale used for the panner/pager
  72. DeskTopScale 32
  73.  
  74. # Use the Fvwm Pager
  75. Pager -5 -5
  76.  
  77. #The pager is automatically sticky, but I like it to StayOnTop
  78. #StaysOnTop Fvwm Pager
  79.  
  80. #The pager is automatically sticky, but I like it without a title
  81. NoTitle Fvwm Pager
  82.  
  83. #Might as well leave it out of the window list too...
  84. WindowListSkip Fvwm Pager
  85.  
  86.  
  87. # flip by whole pages on the edge of the screen.
  88. EdgeScroll 100 100
  89. # A modest delay before flipping pages seems to be nice...
  90. # I thresh in a 50 pixel Move-resistance too, just so people
  91. # can try it out.
  92. EdgeResistance 250 50
  93.  
  94. ############################################################################
  95. # list the windows that don't want a title bar
  96. NoTitle xclock
  97. NoTitle oclock
  98. NoTitle xdclock
  99. NoTitle Clock
  100. NoTitle xbiff
  101. NoTitle xload
  102.  
  103. ###########################################################################
  104. # Here's where I could list NoBorder windows that don't get frames.
  105. # If a window shows up with NoTitle and NoBorder, it gets no decorations
  106. # at all.
  107. # When windows are NoBordered, they look a bit like twm is handling them
  108. #NoBorder xterm
  109.  
  110. ##########################################################################
  111. # now the windows that "Stick to the glass", ie don't scroll with the
  112. # desktop
  113. Sticky xclock
  114. Sticky xdclock
  115. Sticky oclock
  116. Sticky Clock
  117. Sticky xbiff
  118.  
  119. ############################################################################
  120. # now list windows that want to "stay on top," ie stay visible until
  121. # explicitly lowered
  122. # I got tired of this, except for the pager.
  123. #StaysOnTop xclock
  124. #StaysOnTop xdclock
  125. #StaysOnTop oclock
  126. #StaysOnTop Clock
  127.  
  128. ############################################################################
  129. # now list windows that don't need to show up in the window list
  130. WindowListSkip Clock
  131. WindowListSkip xbiff
  132. WindowListSkip xclock
  133. WindowListSkip oclock
  134.  
  135. ############################################################################
  136. # define some common icon bitmaps
  137.  
  138. # These are the color icons.
  139. # Of course, you need to change the directory to the one where they
  140. # really live.
  141. Icon "xterm"       /usr/include/X11/pixmaps/xterm.xpm
  142. Icon "Fvwm Pager"  /usr/include/X11/pixmaps/fvwm.xpm
  143. Icon "xcalc"       /usr/include/X11/pixmaps/xcalc.xpm
  144. Icon "xbiff"       /usr/include/X11/pixmaps/mail1.xpm
  145. Icon "xman"       /usr/include/X11/pixmaps/xman.xpm
  146. Icon ""            /usr/include/X11/pixmaps/unknown1.xpm
  147.  
  148. # Here are some monchrome icon bitmaps that everyone should have
  149. Icon "xterm"        /usr/include/X11/bitmaps/Term
  150. # I have included a default.xbm in the fvwm_icons subdirectory
  151. Icon ""            /usr/include/X11/bitmaps/default.xbm
  152.  
  153. ##############################################################################
  154. #now define the menus - defer bindings until later
  155.  
  156. # This menu is invoked as a sub-menu - it allows you to quit,
  157. # restart, or switch to another WM.
  158. Popup "Quit-Verify"
  159.     Title    "Really Quit Fvwm?"
  160.     Quit    "Yes, Really Quit"
  161.     Restart "Restart Fvwm" fvwm
  162.     Restart "Start twm" twm
  163.     Restart "Start mwm" mwm
  164.     Restart "Start olwm" /usr/openwin/bin/olwm
  165.     Nop    ""
  166.     Nop    "No, Don't Quit"
  167. EndPopup
  168.  
  169. # This menu will fire up some very common utilities
  170. Popup "Utilities"
  171.     Title     "Utilities"
  172.     Exec    "Xterm"        exec xterm &
  173.     Exec    "Top"        exec rxvt -T Top -n Top -e top &
  174.     Exec    "Calculator"    exec xcalc &
  175.     Exec    "Xman"        exec xman &
  176.     Exec    "Xmag"        exec xmag &
  177.     Exec    "Xload"        exec xload &
  178.     Nop    ""
  179.     Popup    "Exit Fvwm"    Quit-Verify
  180.     Nop    ""
  181.     Refresh    "Refresh Screen"
  182. EndPopup
  183.  
  184. # This defines the most common window operations
  185. Popup "Window Ops"
  186.     Title    "Window Ops"
  187.     Move    "Move"
  188.     Resize  "Resize"
  189.     Raise   "Raise"
  190.     Lower   "Lower"
  191.     Iconify "(De)Iconify"
  192.     Stick    "(Un)Stick"
  193.     Maximize "(Un)Maximize"
  194.     Maximize "(Un)Maximize Vertical"    0 100
  195.     Nop     ""
  196.     Destroy "Destroy"
  197.     Delete  "Delete"
  198. EndPopup
  199.  
  200.  
  201. ############################################################################
  202. # Now define some handy complex functions
  203.  
  204. # This one moves and then raises the window if you drag the mouse,
  205. # only raises the window if you click,  or does a RaiseLower if you double 
  206. # click
  207. Function "Move-or-Raise"
  208.     Move         "Motion"
  209.     Raise        "Motion"
  210.     Raise        "Click"
  211.     RaiseLower    "DoubleClick" 
  212. EndFunction
  213.  
  214. # This one moves and then lowers the window if you drag the mouse,
  215. # only lowers the window if you click,  or does a RaiseLower if you double 
  216. # click
  217. Function "Move-or-Lower"
  218.     Move         "Motion"
  219.     Lower        "Motion"
  220.     Lower        "Click"
  221.     RaiseLower    "DoubleClick"
  222. EndFunction
  223.  
  224. # This one resizes and then raises the window if you drag the mouse,
  225. # only raises the window if you click,  or does a RaiseLower if you double 
  226. # click
  227. Function "Resize-or-Raise"
  228.     Resize         "Motion"
  229.     Raise        "Motion"
  230.     Raise        "Click"
  231.     RaiseLower    "DoubleClick"
  232. EndFunction
  233.  
  234.  
  235. ##############################################################################
  236. # This defines the mouse bindings
  237.  
  238. # First, for the mouse in the root window
  239. # Button 1 gives the Utilities menu
  240. # Button 2 gives the Window Ops menu
  241. # Button 3 gives the WindowList (like TwmWindows)
  242. # I use the AnyModifier option for the modifier field, so you can hold down
  243. # any shift-control-whatever combination you want!
  244.  
  245. #     Button    Context Modifi     Function
  246. Mouse 1        R       A       PopUp "Utilities"
  247. Mouse 2        R        A          PopUp "Window Ops"
  248. Mouse 3        R        A          WindowList
  249.  
  250.  
  251.  
  252. # Now the title bar buttons
  253. # Any button in the left title-bar button gives the window ops menu
  254. # Any button in the right title-bar button Iconifies the window
  255. # Note the use of "Mouse 0" for AnyButton.
  256.  
  257. #     Button    Context Modifi     Function
  258. Mouse 0        1        A          PopUp "Window Ops"
  259. Mouse 0        2        A         Iconify
  260.  
  261. # Now the rest of the frame
  262. # Here I invoke my complex functions for Move-or-lower, Move-or-raise,
  263. # and Resize-or-Raise. 
  264. # Button 1 in the corner pieces, with any modifiers, gives resize or raise
  265. Mouse 1        F    A    Function "Resize-or-Raise"
  266. # Button 1 in the title, sides, or icon, w/ any modifiers, gives move or raise
  267. Mouse 1        TSI    A    Function "Move-or-Raise"
  268. # Button 2 in an icon, w/ any modifiers, gives de-iconifies
  269. Mouse 2        I    A    Iconify
  270. # Button 2 in the corners, sides, or title-bar gives the window ops menu
  271. Mouse 2        FST    A    PopUp "Window Ops"
  272. # Button 3 anywhere in the decoration (except the title-bar buttons)
  273. # does a move-or-lower
  274. Mouse 3        TSIF    A    Function "Move-or-Lower"
  275.  
  276.  
  277. ############################################################################
  278. # Now some keyboard shortcuts.
  279.  
  280. # Arrow Keys
  281. # press arrow + control anywhere, and scroll by 1 page
  282. Key Left    A    C    Scroll -100 0
  283. Key Right    A    C    Scroll +100 +0
  284. Key Up        A    C    Scroll +0   -100
  285. Key Down    A    C    Scroll +0   +100
  286.  
  287. # press arrow + meta key, and scroll by 1/10 of a page
  288. Key Left    A    M    Scroll -10 +0
  289. Key Right    A    M    Scroll +10 +0
  290. Key Up        A    M    Scroll +0   -10
  291. Key Down    A    M    Scroll +0   +10
  292.  
  293. # press shift arrow + control anywhere, and move the pointer by 1% of a page
  294. Key Left    A    SC    CursorMove -1 0
  295. Key Right    A    SC    CursorMove +1 +0
  296. Key Up        A    SC    CursorMove +0   -1
  297. Key Down    A    SC    CursorMove +0   +1
  298.  
  299. # press shift arrow + meta key, and move the pointer by 1/10 of a page
  300. Key Left    A    SM    CursorMove -10 +0
  301. Key Right    A    SM    CursorMove +10 +0
  302. Key Up        A    SM    CursorMove +0   -10
  303. Key Down    A    SM    CursorMove +0   +10
  304.  
  305. # Keyboard accelerators
  306. Key F1        A    M    Popup "Utilities"
  307. Key F2        A    M    Popup "Window Ops"
  308. Key F3        A    M    WindowList
  309. Key F4        A    M    Iconify
  310. Key F5        A    M    Move
  311. Key F6        A    M    Resize
  312. Key F7        A    M    CirculateUp
  313. Key F8        A    M    CirculateDown
  314.  
  315. #Page Up/Dapge Down keys are used to scroll by one desktop page
  316. # in any context, press page up/down + control
  317. # in root context, just pressing page up/down is OK
  318. # I prefer the non-wrapping scroll. These are for example purposes only
  319. #Key Next    A       C       Scroll 100000 0
  320. #Key Next    R       N       Scroll 100000 0  
  321. #Key Prior    A       C       Scroll -100000 0
  322. #Key Prior    R       N       Scroll -100000 0
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.